home *** CD-ROM | disk | FTP | other *** search
- Demos for True BASIC using SET MODE "RGB" and GSHADE(pts(,),clrs())
- -------------------------------------------------------------------
-
- These programs use the Silicon Graphics specific functions for doing
- Gourard shading and RGB colors.
-
- The SET MODE "RGB" statement changes the configuration from color map mode
- to RGB mode. The color map is stored internally by True BASIC so that
- references to color names and numbers have consistent behavior in both modes.
- SET MODE "CMAP" returns the program to color map mode.
-
- The GSHADE(pts(,),clrs()) function requires a two dimensional array of points
- and a corresponding array of color numbers. The GSHADE function performs
- Gourard shading (color blending between vertices) for polygons.
-
- These demos also use the SET MODE "DOUBLEBUFFER" feature for animation.
- Note that programs using doublebuffering must call the SET MODE "DOUBLEBUFFER"
- statement before any other graphics commands.
-